from rest_framework import permissions
from rest_framework import viewsets
from usercenter.models import CustomerProfile
from .serializers import CustomerSerializer


class CustomerProfileViewSet(viewsets.ModelViewSet):
    """
    客户管理api
    """
    queryset = CustomerProfile.objects.all()
    serializer_class = CustomerSerializer
    permission_classes = (permissions.IsAuthenticated,)
